import { createRouter, createWebHistory } from 'vue-router'

const router = createRouter({
	history: createWebHistory(import.meta.env.BASE_URL),
	routes: [

		{
			path: '/main',
			name: 'main',
			component: () => import('../views/Main.vue'),
			children: [{
				path: '/materials',
				name: 'materials',
				component: () => import("@/views/basic-data/materials/MaterialsList.vue")
			}]
		},
		{
			path: '/context',
			name: '',
			component: () => import('../views/Context.vue'),
		},
		{
			path: '/ts',
			name: '',
			component: () => import('../views/TypeScript.vue'),
		},
		{
			path: '/student',
			name: '',
			component: () => import('../views/Student.vue'),
		},
	],
})

export default router